package com.shujia.wyh.day06.homework.test6;

/*
车型，车牌，启动，停止
 */
public class Car {
    private String carName;
    private String carCard;

    public Car() {
    }

    public Car(String carName, String carCard) {
        this.carName = carName;
        this.carCard = carCard;
    }

    public String getCarName() {
        return carName;
    }

    public void setCarName(String carName) {
        this.carName = carName;
    }

    public String getCarCard() {
        return carCard;
    }

    public void setCarCard(String carCard) {
        this.carCard = carCard;
    }

    public void start(){
        System.out.println("我是车，我启动");
    }

    public void stop(){
        System.out.println("我是车，我停止");
    }
}
